package com.site.wisdom_construction.service.qualityModule;

import com.site.wisdom_construction.dao.qualityModule.QualityDangerStatisticsDao;
import com.site.wisdom_construction.entity.qualityModule.QualityDangerStatistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/2/12
 * @Description
 */
@Service
public class QualityDangerStatisticsService implements QualityDangerStatisticsDao {
    @Autowired
    private QualityDangerStatisticsDao qualityDangerStatisticsDao;

    @Override
    public int insertQualityDangerStatistics(Map map) {
        return qualityDangerStatisticsDao.insertQualityDangerStatistics(map);
    }

    @Override
    public int deleteQualityDangerStatistics(Integer projectId) {
        return qualityDangerStatisticsDao.deleteQualityDangerStatistics(projectId);
    }

    @Override
    public List<QualityDangerStatistics> selectQualityDangerStatistics(Map map) {
        return qualityDangerStatisticsDao.selectQualityDangerStatistics(map);
    }
}
